package route

import (
	"core/remote/node"
	"core/repository"
	"core/service"
	"hall/handler"
)

func Handlers() node.LogicHandler {
	// 创建 UserHandler
	userService := service.NewUserService(repository.New())
	userHandler := handler.NewUserHandler(userService)
	// 创建 LogicHandler
	handlers := make(node.LogicHandler)
	handlers["userHandler.updateUserAddress"] = userHandler.UpdateUserAddress
	return handlers
}
